package com.mallcloud.mall.mall.api.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mallcloud.mall.common.core.constant.enums.mall.XGLEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@ApiModel(value = "XglCouponViewExcelVO", description = "星光里券视图")
@Data
public class XglCouponViewExcelVO implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty("档期码")
	private String scheduleId;

	@ApiModelProperty("券种类")
	private String type;

	@ApiModelProperty("券名称")
	private String name;

	@ApiModelProperty("券可兑换金额")
	private BigDecimal redeemMoney;

	@ApiModelProperty("售价")
	private BigDecimal salePrice;

	@ApiModelProperty("开始日期")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date startTime;

	@ApiModelProperty("结束日期")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date endTime;

	@ApiModelProperty("剩余比例")
	private String leftPercent;

	@ApiModelProperty("剩余数量")
	private String leftNum;

	@ApiModelProperty("已售数量")
	private String saleNum;

	@ApiModelProperty("券图片地址")
	private String imageBgUrl;

	@ApiModelProperty("券图片编码")
	private String imageBgId;

	/**
	 * {@link XGLEnum.PurposeEnum}
	 */
	@ApiModelProperty("券用途")
	private Integer purpose;

	@ApiModelProperty("收券规则")
	private String rule;

}
